package Polymorphic.PolymorphDemo004.Text;
//导包

import Polymorphic.PolymorphDemo004.Domain1.Teacher;

/**
 * ClassName:Text
 * Package:Polymorphic.PolymorphDemo004
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/1/24-13:25
 * @Version:v1.0
 */
public class Text {
    public static void main(String[] args) {
        Student stu = new Student();
        stu.setName("张鑫");
        stu.setAge(24);
        System.out.println(stu.getName()+"  "+stu.getAge());

        String s ="abc";
        System.out.println(s);
    }
    //其他情况都需要导包
    Teacher t = new Teacher();//Domain1
    //4.如果同时使用两个包中的同名类,需要用全类名
    Polymorphic.PolymorphDemo004.Domain.Teacher t2 = new Polymorphic.PolymorphDemo004.Domain.Teacher();
}
